package me.nereo.multi_image_selector.bean;

/**
 * 图片实体
 * Created by Nereo on 2015/4/7.
 */
public class Image {

    public String mPath;
    public String mName;
    public long mTime;

    /**
     * @param path string
     * @param name string
     * @param time long
     */
    public Image(String path, String name, long time) {
        this.mPath = path;
        this.mName = name;
        this.mTime = time;
    }

    @Override
    public boolean equals(Object o) {
        try {
            Image other = (Image) o;
            return this.mPath.equalsIgnoreCase(other.mPath);
        } catch (ClassCastException e) {
            e.printStackTrace();
        }
        return super.equals(o);
    }
}
